#!/bin/bash
for i in `kubeadm config images list`; do 
  imageName=${i#k8s.gcr.io/}
  sudo docker pull registry.cn-hangzhou.aliyuncs.com/slpcode/$imageName
  sudo docker tag registry.cn-hangzhou.aliyuncs.com/slpcode/$imageName k8s.gcr.io/$imageName
  sudo docker rmi registry.cn-hangzhou.aliyuncs.com/slpcode/$imageName
done;